package com.vercon.common.room.entry;

import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

@Entity(tableName = "appdata_info")
public class AppDataRoomInfo {
    @PrimaryKey( autoGenerate = true )
    public int id;

    private String name;
    private String logoUrl;
    private String describe;
    private String actualVersion;
    private String apkUrl;//如果这个是本地功能模块，代表这个模块的id

    private String packageName;
    private String apkSize;

    public AppDataRoomInfo(){}

    @Ignore
    public AppDataRoomInfo(String name, String apkUrl, String packageName) {
        this.name = name;
        this.apkUrl = apkUrl;
        this.packageName = packageName;
    }

    public String getApkSize() {
        return apkSize;
    }

    public void setApkSize(String apkSize) {
        this.apkSize = apkSize;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLogoUrl() {
        return logoUrl;
    }

    public void setLogoUrl(String logoUrl) {
        this.logoUrl = logoUrl;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public String getActualVersion() {
        return actualVersion;
    }

    public void setActualVersion(String actualVersion) {
        this.actualVersion = actualVersion;
    }

    public String getApkUrl() {
        return apkUrl;
    }

    public void setApkUrl(String apkUrl) {
        this.apkUrl = apkUrl;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    @Override
    public String toString() {
        return "AppData{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", logoUrl='" + logoUrl + '\'' +
                ", describe='" + describe + '\'' +
                ", actualVersion='" + actualVersion + '\'' +
                ", apkUrl='" + apkUrl + '\'' +
                ", packageName='" + packageName + '\'' +
                ", apkSize='" + apkSize + '\'' +
                '}';
    }


}
